<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});


Route::get('/article/{id}', function($id) {
    return "article id:" . $id;
})->where('id', '[0-9]+');

Route::get('/article/add', function () {
    return view('article.article_post');
});

Route::get('/article/list', 'Article@list');



Route::post('/article', 'Article@create');


